package task

import (
	"time"
)

type Product struct {
	Id                int64 `xorm:"pk"`
	Uid               int64
	Name              string
	OriginPrice       string
	ProductPrice      string
	PackagePrice      string
	IsPackage         int
	PackageNum        int
	DayFreeTimes      int
	ActivityType      int
	ActivityStartTime time.Time
	ActivityEndTime   time.Time
	ExpiryDate        int
	TotalServiceTime  int
	ShortDesc         string
	Desc              string
	Status            int
	CheckFailedReason string
	OffShelfReason    string
	ServiceType       int
	IsDelete          int
	SortOrder         int64
	CreateTime        time.Time
	UpdateTime        time.Time
	FeedbackRate      string
	SaleoutAmount     int
	ExpireDays        int
}

type ProductCategory struct {
	Id          int `xorm:"pk"`
	CategoryId1 int `xorm:"'category_id_1'"`
	CategoryId2 int `xorm:"'category_id_2'"`
	ProductId   int64
}

type CateDoctor struct {
	Id          int `xorm:"pk"`
	DoctorId    int
	CategoryId1 int `xorm:"'category_id_1'"`
	CategoryId2 int `xorm:"'category_id_2'"`
}

type Answer struct {
	Id          int `xorm:"pk"`
	AskId       int
	Uid         int64
	DoctorId    int
	Content     string
	CreateTime  time.Time
	UpdateTime  time.Time
	AdminId     int
	IsDelete    int
	Zan         int
	ParentId    int
	Anonymous   int
	PrevLeverId int
	Name        string
	Header      string
	Ffrom       string
	Ip          string
	Browser     string
	Channel     string
}
